namespace CollegeReviewApp.Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class test : DbMigration
    {
        public override void Up()
        {
            CreateIndex("dbo.Reviews", "CollegeId");
            AddForeignKey("dbo.Reviews", "CollegeId", "dbo.Colleges", "Id", cascadeDelete: true);
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.Reviews", "CollegeId", "dbo.Colleges");
            DropIndex("dbo.Reviews", new[] { "CollegeId" });
        }
    }
}
